@import "tailwindcss";
@import "tw-animate-css";

@custom-variant dark (&:is(.dark *));

@theme {
  --breakpoint-xs: 490px;

  --font-sans: Shuttleblock, ui-sans-serif, system-ui, sans-serif;
  --font-heading: Shuttleblock, ui-sans-serif, system-ui, sans-serif;

  --color-main: var(--main);
  --color-overlay: var(--overlay);
  --color-background: var(--bg);
  --color-secondary-background: var(--bw);
  --color-blank: var(--blank);
  --color-foreground: var(--text);
  --color-main-foreground: var(--mtext);
  --color-border: var(--border);
  --color-ring: var(--ring);
  --color-ring-offset: var(--ring-offset);
  --color-secondary-black: #212121;
  --color-error: var(--error);
  --color-fun: var(--fun);
  --color-orange: var(--orange);
  --color-blue: var(--blue);

  --radius-base: 5px;

  --shadow-shadow: var(--shadow);

  --spacing-boxShadowX: 4px;
  --spacing-boxShadowY: 4px;
  --spacing-reverseBoxShadowX: -4px;
  --spacing-reverseBoxShadowY: -4px;

  --font-weight-base: 500;
  --font-weight-heading: 700;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  --animate-star-pulse: starPulse 16s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  --animate-hard-flicker: hardFlicker 0.16s infinite;
  --animate-soft-flicker: softFlicker 2s infinite;
  --animate-marquee: marquee 15s linear infinite;
  --animate-marquee2: marquee2 15s linear infinite;

  @keyframes starPulse {
    0%,
    100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.3;
      transform: scale(0.95);
    }
  }
  @keyframes hardFlicker {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.85;
    }
    25%,
    75% {
      opacity: 0.95;
    }
  }
  @keyframes softFlicker {
    0%,
    100% {
      opacity: 0.1;
    }
    50% {
      opacity: 0.15;
    }
  }
  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  @keyframes marquee {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-100%);
    }
  }
  @keyframes marquee2 {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(0%);
    }
  }
}

/*
  The default border color has changed to `currentColor` in Tailwind CSS v4,
  so we've added these compatibility styles to make sure everything still
  looks the same as it did with Tailwind CSS v3.

  If we ever want to remove these styles, we need to add an explicit border
  color utility to any element that depends on these defaults.
*/
@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    border-color: var(--color-gray-200, currentColor);
  }
}

:root {
  --main: #48a9a6;
  --overlay: rgba(0, 0, 0, 0.8);
  --static-text: #c1666b;
  --error: #c1666b;
  --fun: #d4b483;
  --orange: #f6723a;
  --blue: #4a94b5;
  /* Static asteroid variables */
  --static-asteroid-fill: #948d89;
  --static-asteroid-border: #dedede;

  --bg: #dfe5f2;
  --bw: #e4dfda;
  --blank: #000;
  --border: #000;
  --text: #000;
  --mtext: #000;
  --ring: #000;
  --ring-offset: #e4dfda;

  --border-radius: 5px;
  --box-shadow-x: 4px;
  --box-shadow-y: 4px;
  --reverse-box-shadow-x: -4px;
  --reverse-box-shadow-y: -4px;
  --base-font-weight: 500;
  --heading-font-weight: 700;

  --shadow: var(--box-shadow-x) var(--box-shadow-y) 0px 0px var(--border);

  --chart-1: 196 39% 33%;
  --chart-2: 183 37% 49%;
  --chart-3: 29 85% 87%;
  --chart-4: 19 91% 59%;
  --chart-5: 1 54% 50%;

  --color-movie: #1a5999;
  --color-show: #39b978;
  --color-count: #f47b30;
}

.dark {
  --bg: #272933;
  --bw: #212121;
  --blank: #e4dfda;
  --border: #000;
  --text: #e6e6e6;
  --mtext: #000;
  --ring: #e4dfda;
  --ring-offset: #000;

  --shadow: var(--box-shadow-x) var(--box-shadow-y) 0px 0px var(--border);
}

body {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: pan-y pinch-zoom;
}

#app {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Font heading utility - only applies to direct heading elements */
@layer utilities {
  .font-heading > h1,
  .font-heading > h2,
  .font-heading > h3,
  .font-heading > h4,
  .font-heading > h5,
  .font-heading > h6,
  h1.font-heading,
  h2.font-heading,
  h3.font-heading,
  h4.font-heading,
  h5.font-heading,
  h6.font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
  }
}
